package com.sskj.run.bean;

import android.text.TextUtils;

import com.sskj.lib.util.CommonUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Q-Kang on 2019/1/10.
 */

public class StockBloomBean {

    /**
     * status : 2
     * msg : 获取数据成功
     * data : [{"process":{"gid":178864,"e":859,"start_pt_pool_money":"33359.8447","start_btc_pool_money":"316671.8330"}},{"xiazhu_list":[]},{"escape_list":[]}]
     * back_time : 1547100534386
     */

    private int status;
    private String msg;
    private long back_time;
    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getBack_time() {
        return back_time;
    }

    public void setBack_time(long back_time) {
        this.back_time = back_time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {

        private CrashBean crash;
        private PrepareBean prepare;
        private ProcessBean process;
        private List<XiazhuBeans> xiazhu_list;
        private List<EscapeBean> escape_list;

        public ProcessBean getProcess() {
            return process;
        }

        public void setProcess(ProcessBean process) {
            this.process = process;
        }

        public List<XiazhuBeans> getXiazhu_list() {
            return xiazhu_list;
        }

        public void setXiazhu_list(List<XiazhuBeans> xiazhu_list) {
            this.xiazhu_list = xiazhu_list;
        }

        public CrashBean getCrash() {
            return crash;
        }

        public void setCrash(CrashBean crash) {
            this.crash = crash;
        }

        public PrepareBean getPrepare() {
            return prepare;
        }

        public void setPrepare(PrepareBean prepare) {
            this.prepare = prepare;
        }

        public List<EscapeBean> getEscape_list() {
            if (escape_list == null) {
                return new ArrayList<>();
            }
            return escape_list;
        }

        public void setEscape_list(List<EscapeBean> escape_list) {
            this.escape_list = escape_list;
        }

        public static class ProcessBean {
            /**
             * gid : 178864
             * e : 859
             * start_pt_pool_money : 33359.8447
             * start_btc_pool_money : 316671.8330
             */

            private int gid;
            private int e;

            private int boomValue;
            private String start_usdt_pool_money;
            private String start_cnb_pool_money;
            private String start_lac_pool_money;
            private String start_sop_pool_money;

            public String getPoolMoneyByType(String type) {
                if (type.equals(BetEnum.USDT.getType())) {
                    return getStart_usdt_pool_money();
                }
                if (type.equals(BetEnum.CNB.getType())) {

                    return getStart_cnb_pool_money();
                }
                if (type.equals(BetEnum.LAC.getType())) {

                    return getStart_lac_pool_money();
                }
                if (type.equals(BetEnum.SOP.getType())) {

                    return getStart_sop_pool_money();
                }
                return "";
            }


            public String getStart_usdt_pool_money() {
                return start_usdt_pool_money == null ? "" : start_usdt_pool_money;
            }

            public void setStart_usdt_pool_money(String start_usdt_pool_money) {
                this.start_usdt_pool_money = start_usdt_pool_money;
            }


            public int getGid() {
                return gid;
            }

            public void setGid(int gid) {
                this.gid = gid;
            }

            public int getE() {
                return e;
            }

            public void setE(int e) {
                this.e = e;
            }

            public int getBoomValue() {
                return boomValue;
            }

            public void setBoomValue(int boomValue) {
                this.boomValue = boomValue;
            }

            public String getStart_cnb_pool_money() {
                return start_cnb_pool_money;
            }

            public void setStart_cnb_pool_money(String start_cnb_pool_money) {
                this.start_cnb_pool_money = start_cnb_pool_money;
            }

            public String getStart_lac_pool_money() {
                return start_lac_pool_money;
            }

            public void setStart_lac_pool_money(String start_lac_pool_money) {
                this.start_lac_pool_money = start_lac_pool_money;
            }

            public String getStart_sop_pool_money() {
                return start_sop_pool_money;
            }

            public void setStart_sop_pool_money(String start_sop_pool_money) {
                this.start_sop_pool_money = start_sop_pool_money;
            }
        }

        public static class CrashBean {
            /**
             * gid : 8807
             * e : 31166
             * h : e2a6ac72c324cb9b8c1e0fd0672ae77aaac0815728545e9ca27e3087798a1634
             * boomValue : 8.63
             * start_pt_pool_money : 0
             * start_btc_pool_money : 335.2609
             * start_usdt_pool_money : 0
             */

            private int gid;
            private String e;
            private String h;
            private double boomValue;
            private String start_usdt_pool_money;
            private String start_lac_pool_money;
            private String start_cnb_pool_money;
            private String start_sop_pool_money;

            public String getPoolMoneyByType(String type) {
                if (type.equals(BetEnum.USDT.getType())) {
                    return getStart_usdt_pool_money();
                }
                if (type.equals(BetEnum.CNB.getType())) {

                    return getStart_cnb_pool_money();
                }
                if (type.equals(BetEnum.LAC.getType())) {

                    return getStart_lac_pool_money();
                }
                if (type.equals(BetEnum.SOP.getType())) {

                    return getStart_sop_pool_money();
                }
                return "";
            }

            public int getGid() {
                return gid;
            }

            public void setGid(int gid) {
                this.gid = gid;
            }

            public String getE() {
                return e == null ? "" : e;
            }

            public void setE(String e) {
                this.e = e;
            }

            public String getH() {
                return h == null ? "" : h;
            }

            public void setH(String h) {
                this.h = h;
            }

            public double getBoomValue() {
                return boomValue;
            }

            public void setBoomValue(double boomValue) {
                this.boomValue = boomValue;
            }

            public String getStart_lac_pool_money() {
                return start_lac_pool_money;
            }

            public void setStart_lac_pool_money(String start_lac_pool_money) {
                this.start_lac_pool_money = start_lac_pool_money;
            }

            public String getStart_cnb_pool_money() {
                return start_cnb_pool_money;
            }

            public void setStart_cnb_pool_money(String start_cnb_pool_money) {
                this.start_cnb_pool_money = start_cnb_pool_money;
            }

            public String getStart_sop_pool_money() {
                return start_sop_pool_money;
            }

            public void setStart_sop_pool_money(String start_sop_pool_money) {
                this.start_sop_pool_money = start_sop_pool_money;
            }

            public String getStart_usdt_pool_money() {
                return start_usdt_pool_money == null ? "" : start_usdt_pool_money;
            }

            public void setStart_usdt_pool_money(String start_usdt_pool_money) {
                this.start_usdt_pool_money = start_usdt_pool_money;
            }
        }

        public static class PrepareBean {
            /**
             * gid : 8817
             * pt : 1547125821392
             * st : 1547125827392
             * start_pt_pool_money : 0
             * start_btc_pool_money : 335.2609
             * start_usdt_pool_money : 0
             */

            public String getPoolMoneyByType(String type) {
                if (type.equals(BetEnum.USDT.getType())) {
                    return getStart_usdt_pool_money();
                }
                if (type.equals(BetEnum.CNB.getType())) {

                    return getStart_cnb_pool_money();
                }
                if (type.equals(BetEnum.LAC.getType())) {

                    return getStart_lac_pool_money();
                }
                if (type.equals(BetEnum.SOP.getType())) {

                    return getStart_sop_pool_money();
                }
                return "";
            }

            private int gid;
            private String pt;
            private String st;

            private String start_usdt_pool_money;
            private String start_lac_pool_money;
            private String start_cnb_pool_money;
            private String start_sop_pool_money;

            public int getGid() {
                return gid;
            }

            public void setGid(int gid) {
                this.gid = gid;
            }

            public String getPt() {
                return pt == null ? "" : pt;
            }

            public void setPt(String pt) {
                this.pt = pt;
            }

            public String getSt() {
                return st == null ? "" : st;
            }

            public void setSt(String st) {
                this.st = st;
            }

            public String getStart_usdt_pool_money() {
                return start_usdt_pool_money == null ? "" : start_usdt_pool_money;
            }

            public void setStart_usdt_pool_money(String start_usdt_pool_money) {
                this.start_usdt_pool_money = start_usdt_pool_money;
            }

            public String getStart_lac_pool_money() {
                return start_lac_pool_money;
            }

            public void setStart_lac_pool_money(String start_lac_pool_money) {
                this.start_lac_pool_money = start_lac_pool_money;
            }

            public String getStart_cnb_pool_money() {
                return start_cnb_pool_money;
            }

            public void setStart_cnb_pool_money(String start_cnb_pool_money) {
                this.start_cnb_pool_money = start_cnb_pool_money;
            }

            public String getStart_sop_pool_money() {
                return start_sop_pool_money;
            }

            public void setStart_sop_pool_money(String start_sop_pool_money) {
                this.start_sop_pool_money = start_sop_pool_money;
            }
        }

        public static class EscapeBean {
            /**
             * qs : 19084
             * uid : 13
             * buy_money : 10.0000
             * pid : 2
             * escape_beishu : 100.0000
             * ordername : QC1315474564938343
             * create_time : 1547456493455
             * edition : 0
             * realname : 4O2vU95u0268
             * escape_time : 1547456511681
             * escape_xiangdui_time : 14579
             * status : 2
             * final_beishu : 2.74
             * escape_want_time : 66594
             */

            private String qs;
            private String uid;
            private String buy_money;
            private int pid;
            private String escape_beishu;
            private String ordername;
            private long create_time;
            private int edition;
            private String realname;
            private long escape_time;
            private int escape_xiangdui_time;
            private int status;
            private String final_beishu;
            private String escape_want_time;

            public String getQs() {
                return qs;
            }

            public void setQs(String qs) {
                this.qs = qs;
            }

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getBuy_money() {
                return buy_money;
            }

            public void setBuy_money(String buy_money) {
                this.buy_money = buy_money;
            }

            public int getPid() {
                return pid;
            }

            public void setPid(int pid) {
                this.pid = pid;
            }

            public String getEscape_beishu() {
                return escape_beishu;
            }

            public void setEscape_beishu(String escape_beishu) {
                this.escape_beishu = escape_beishu;
            }

            public String getOrdername() {
                return ordername;
            }

            public void setOrdername(String ordername) {
                this.ordername = ordername;
            }

            public long getCreate_time() {
                return create_time;
            }

            public void setCreate_time(long create_time) {
                this.create_time = create_time;
            }

            public int getEdition() {
                return edition;
            }

            public void setEdition(int edition) {
                this.edition = edition;
            }

            public String getRealname() {
                return TextUtils.isEmpty(realname) ? "" : (realname.charAt(0) + "*");
            }

            public void setRealname(String realname) {
                this.realname = realname;
            }

            public long getEscape_time() {
                return escape_time;
            }

            public void setEscape_time(long escape_time) {
                this.escape_time = escape_time;
            }

            public int getEscape_xiangdui_time() {
                return escape_xiangdui_time;
            }

            public void setEscape_xiangdui_time(int escape_xiangdui_time) {
                this.escape_xiangdui_time = escape_xiangdui_time;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getFinal_beishu() {
                return final_beishu;
            }

            public void setFinal_beishu(String final_beishu) {
                this.final_beishu = final_beishu;
            }

            public String getEscape_want_time() {
                return escape_want_time;
            }

            public void setEscape_want_time(String escape_want_time) {
                this.escape_want_time = escape_want_time;
            }
        }

        public static class XiazhuBeans {


            /**
             * qs : 19542
             * uid : 13
             * buy_money : 10.0000
             * pid : 2
             * escape_beishu : 100.0000
             * ordername : QC1315474695128086
             * create_time : 1547469512622
             * edition : 0
             * realname : 4O2vU95u0268
             * escape_time : 0
             * escape_xiangdui_time : 0
             * status : 1
             * final_beishu : 0
             * escape_want_time : 66594
             * upic :
             */

            private String qs;
            private String uid;
            private String buy_money;
            private int pid;
            private String escape_beishu;
            private String ordername;
            private String create_time;
            private String edition;
            private String realname;
            private String escape_time;
            private String escape_xiangdui_time;
            private int status;
            private String final_beishu;
            private String escape_want_time;
            private String upic;
            private String pid_name;

            public String getPid_name() {
                return pid_name;
            }

            public void setPid_name(String pid_name) {
                this.pid_name = pid_name;
            }

            public String getQs() {
                return qs == null ? "" : qs;
            }

            public void setQs(String qs) {
                this.qs = qs;
            }

            public String getUid() {
                return uid == null ? "" : uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getBuy_money() {
                return buy_money == null ? "" : CommonUtil.dealRunMoney(buy_money);
            }

            public void setBuy_money(String buy_money) {
                this.buy_money = buy_money;
            }

            public int getPid() {
                return pid;
            }

            public void setPid(int pid) {
                this.pid = pid;
            }

            public String getEscape_beishu() {
                return escape_beishu == null ? "" : escape_beishu;
            }

            public void setEscape_beishu(String escape_beishu) {
                this.escape_beishu = escape_beishu;
            }

            public String getOrdername() {
                return ordername == null ? "" : ordername;
            }

            public void setOrdername(String ordername) {
                this.ordername = ordername;
            }

            public String getCreate_time() {
                return create_time == null ? "" : create_time;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public String getEdition() {
                return edition == null ? "" : edition;
            }

            public void setEdition(String edition) {
                this.edition = edition;
            }

            public String getRealname() {
                return TextUtils.isEmpty(realname) ? "" : (realname.charAt(0) + "*");
            }

            public void setRealname(String realname) {
                this.realname = realname;
            }

            public String getEscape_time() {
                return escape_time == null ? "" : escape_time;
            }

            public void setEscape_time(String escape_time) {
                this.escape_time = escape_time;
            }

            public String getEscape_xiangdui_time() {
                return escape_xiangdui_time == null ? "" : escape_xiangdui_time;
            }

            public void setEscape_xiangdui_time(String escape_xiangdui_time) {
                this.escape_xiangdui_time = escape_xiangdui_time;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getFinal_beishu() {
                return final_beishu == null ? "" : final_beishu;
            }

            public void setFinal_beishu(String final_beishu) {
                this.final_beishu = final_beishu;
            }

            public String getEscape_want_time() {
                return escape_want_time == null ? "" : escape_want_time;
            }

            public void setEscape_want_time(String escape_want_time) {
                this.escape_want_time = escape_want_time;
            }

            public String getUpic() {
                return upic == null ? "" : upic;
            }

            public void setUpic(String upic) {
                this.upic = upic;
            }
        }

    }

}
